package com.surenpi.jenkins.client.core;

import java.util.List;

public class Statis {
   private List<Double> history;
   private Double latest;

   public List<Double> getHistory() {
      return this.history;
   }

   public void setHistory(List<Double> history) {
      this.history = history;
   }

   public Double getLatest() {
      return this.latest;
   }

   public void setLatest(Double latest) {
      this.latest = latest;
   }

   public int hashCode() {
      int prime = 31;
      int result = 1;
      result = 31 * result + (this.history == null ? 0 : this.history.hashCode());
      result = 31 * result + (this.latest == null ? 0 : this.latest.hashCode());
      return result;
   }

   public boolean equals(Object obj) {
      if (this == obj) {
         return true;
      } else if (obj == null) {
         return false;
      } else if (this.getClass() != obj.getClass()) {
         return false;
      } else {
         Statis other = (Statis)obj;
         if (this.history == null) {
            if (other.history != null) {
               return false;
            }
         } else if (!this.history.equals(other.history)) {
            return false;
         }

         if (this.latest == null) {
            if (other.latest != null) {
               return false;
            }
         } else if (!this.latest.equals(other.latest)) {
            return false;
         }

         return true;
      }
   }
}
